﻿using System;
using System.Collections.Generic;

namespace EmailMarketingDomain
{
    public static class PostOfficeMonitor
    {
        /// <summary>
        /// 本地邮局是否在工作
        /// </summary>
        public static bool NativePostOfficeIsWorking { get { return NativePostOffice.GetInstance().IsWorking; } }
        /// <summary>
        /// 本地邮局信件队列长度
        /// </summary>
        public static int NativePostOfficeLetterQueueLength { get { return NativePostOffice.GetLetterQueueLength(); } }
       
        /// <summary>
        /// 本地邮局停止工作原因
        /// </summary>
        public static string NativePostOfficeStopWorkReason { get { return NativePostOffice.StopWorkReason; } }
      
        /// <summary>
        /// 本地邮局开始工作时间
        /// </summary>
        public static DateTime NativePostOfficeStartWorkTime { get { return NativePostOffice.StarTime; } }
        /// <summary>
        /// 本地邮局结束工作时间
        /// </summary>
        public static DateTime NativePostOfficeEndWorkTime { get { return NativePostOffice.EndTime; } }
        /// <summary>
        ///  获取本地邮局已完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int NativePostOfficeAllFinishedTaskCount { get { return NativePostOffice.AllFinishedTaskCount; } }
        /// <summary>
        ///  获取本地邮局已成功完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int NativePostOfficeAllSuccessFinishedTaskCount { get { return NativePostOffice.ALLSuccessFinishedTaskCount; } }
        #region 代理邮局监控数据
        /// <summary>
        ///  获取QQ邮局已完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int QQPostOfficeFinishedTaskCount { get { return QQPostOffice.GetInstance().FinishedTaskCount; } }
        /// <summary>
        ///  获取QQ邮局已成功完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int QQPostOfficeSuccessFinishedTaskCount { get { return QQPostOffice.GetInstance().FinishedTaskCount; } }
        /// <summary>
        ///  获取163邮局已完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int One63PostOfficeFinishedTaskCount { get { return One63PostOffice.GetInstance().FinishedTaskCount; } }
        /// <summary>
        ///  获取163邮局已成功完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int One63PostOfficeSuccessFinishedTaskCount { get { return One63PostOffice.GetInstance().FinishedTaskCount; } }
        /// <summary>
        ///  获取126邮局已完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int One26PostOfficeFinishedTaskCount { get { return One26PostOffice.GetInstance().FinishedTaskCount; } }
        /// <summary>
        ///  获取126邮局已成功完成任务数量
        /// </summary>
        /// <returns></returns>
        public static int One26PostOfficeSuccessFinishedTaskCount { get { return One26PostOffice.GetInstance().FinishedTaskCount; } }
        #endregion
    }
}
